class Thoroughbred:
    def __init__(self, mother, father, birthyear):
        self._mother = mother  # 母马，私有属性
        self._father = father  # 父马，私有属性
        self._birthyear = birthyear  # 出生年份，私有属性

    def getCurrentAge(self) -> int:
        from datetime import datetime
        current_year = datetime.now().year
        return current_year - self._birthyear

    def getFather(self) -> str:
        return self._father

    def getMother(self) -> str:
        return self._mother

# 示例
thoroughbred = Thoroughbred("母马名字", "父马名字", 2018)
print(thoroughbred.getCurrentAge())  
print(thoroughbred.getFather())     
print(thoroughbred.getMother())   
